package com.bruce.pattern.structural.decorator.v2;

/**
 * Created by bruce on 2018/11/3 23:09
 */
public abstract class AbsDecorator extends AbsBattercake{

    private AbsBattercake absBattercake;

    public AbsDecorator(AbsBattercake absBattercake) {
        this.absBattercake = absBattercake;
    }

    @Override
    public String getDesc() {
        return absBattercake.getDesc();
    }

    @Override
    public int cost() {
        return absBattercake.cost();
    }
}
